# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Brands',
            fields=[
                ('Id', models.AutoField(serialize=False, primary_key=True)),
                ('BrandCode', models.CharField(max_length=20)),
                ('BrandName', models.CharField(max_length=40)),
                ('BrandPinYin', models.CharField(max_length=40)),
                ('BrandJianPin', models.CharField(max_length=40)),
                ('BrandLogo', models.CharField(max_length=255)),
                ('BrandSouPin', models.CharField(max_length=40)),
                ('BrandUrl', models.CharField(max_length=255)),
                ('CreateDate', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='Cars',
            fields=[
                ('Id', models.AutoField(serialize=False, primary_key=True)),
                ('CarsCode', models.CharField(max_length=20)),
                ('CarsName', models.CharField(max_length=60)),
                ('CreateDate', models.DateTimeField(auto_now=True)),
                ('BrandsId', models.ForeignKey(to='cheku.Brands', related_name='carsofbrandsforeign')),
            ],
        ),
        migrations.CreateModel(
            name='Garage',
            fields=[
                ('Id', models.AutoField(serialize=False, primary_key=True)),
                ('Title', models.CharField(max_length=255)),
                ('CarNumber', models.CharField(db_index=True, max_length=20)),
                ('Img', models.CharField(max_length=255)),
                ('Price', models.CharField(max_length=20)),
                ('BidDate', models.CharField(max_length=20)),
                ('CheckDate', models.CharField(max_length=20)),
                ('CheckPerson', models.CharField(max_length=20)),
                ('FactoryDate', models.CharField(max_length=20)),
                ('VehicleDefect', models.CharField(max_length=255)),
                ('ExteriorDefect', models.CharField(max_length=255)),
                ('InteriorDefect', models.CharField(max_length=255)),
                ('ConditionRating', models.CharField(max_length=20)),
                ('ExteriorDesction', models.CharField(max_length=255)),
                ('InteriorDesction', models.CharField(max_length=255)),
                ('DrivingCard', models.CharField(max_length=10)),
                ('MotorVehicleCertificate', models.CharField(max_length=10)),
                ('UseManual', models.CharField(max_length=10)),
                ('MaintenanceManual', models.CharField(max_length=10)),
                ('PurchaseTaxPaymentCertificate', models.CharField(max_length=10)),
                ('CrossStrongInsurancePolicy', models.CharField(max_length=10)),
                ('LicenseLoction', models.CharField(max_length=20)),
                ('UseProperties', models.CharField(max_length=20)),
                ('AnnualInspectionValidity', models.CharField(max_length=10)),
                ('BrandName', models.CharField(max_length=20)),
                ('CarsName', models.CharField(max_length=20)),
                ('LicenseYear', models.CharField(max_length=20)),
                ('ApparentMileage', models.CharField(max_length=20)),
                ('LicenseNumber', models.CharField(max_length=20)),
                ('configure', models.CharField(max_length=255)),
            ],
        ),
        migrations.CreateModel(
            name='MotorcycleType',
            fields=[
                ('Id', models.AutoField(serialize=False, primary_key=True)),
                ('TypeName', models.CharField(max_length=60)),
                ('Url', models.CharField(max_length=255)),
                ('CreateDate', models.DateTimeField(auto_now=True)),
                ('CarsId', models.ForeignKey(to='cheku.Cars', related_name='motorcycletypeofcarsforeign')),
            ],
        ),
        migrations.AddField(
            model_name='garage',
            name='MotorcycleId',
            field=models.ForeignKey(to='cheku.MotorcycleType', related_name='GaragefMotorcycleTypeforeign'),
        ),
    ]
